[Top] [Prev] [Next] [Bottom] [Contents]

SaJavaLenZero

Prints a Java Script statement to check if the length of an argument is equal to zero and a newline character to standard out.

Synopsis

#include "sajavasc.h"
int SaJavaLenZero(char* msg);

Argument

msg
A string specifying character or variable whose length is checked against zero.

Return Values

Returns an integer with a value of 0 if successful and a value of 1 if msg is either NULL or an empty string.

Description

Prints a Java Script statement to check if the length of an argument is equal to zero and a newline character to standard out.

Example

The code fragment:

SaJavaLenZero("number");
will write:

if(number.length == 0) {\n
to the output stream.

See Also

SaJavaB, SaJavaCommE, SaJavaE, SaJavaCommB, SaJavaRetTrue, SaJavaRetFalse, SaJavaPrint, SaJavaMsgBox, SaJavaIsLower\x7f , SaJavaIsUpper, SaJavaNotDigit, SaJavaLenNe, SaJavaStdFor



[Top] [Prev] [Next] [Bottom] [Contents]

info@bluestone.com
Copyright © 1997, Bluestone. All rights reserved.